﻿<UserControl x:Class="OnlineVideos.ShowCheatCode"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
             </Grid.RowDefinitions>
        <ListBox x:Name="lbxCheatcode"  Grid.Row="0"  SelectionChanged="lbxCheatcode_SelectionChanged"  Foreground="White">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel  Orientation="Horizontal" >
                        <TextBlock Text="{Binding CheatName}" Name="tblkchno"  Width="400" FontSize="28" VerticalAlignment="Center" TextWrapping="Wrap"  Height="80" Margin="10,30,20,0"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Canvas>
            <TextBlock Canvas.Top="200" Canvas.Left="80" FontSize="28" x:Name="tblkmsg" Visibility="Collapsed" Text=" No cheats avaliable"/>
        </Canvas>
    </Grid>
</UserControl>
